.class Lcom/waiqin365/lightapp/im/adapter/ay;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/util/Comparator;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/adapter/ax;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/adapter/ax;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/ay;->a:Lcom/waiqin365/lightapp/im/adapter/ax;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/imnotice/g;Lcom/waiqin365/base/db/imnotice/g;)I
    .locals 4

    const/4 v0, -0x1

    :try_start_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/adapter/ay;->a:Lcom/waiqin365/lightapp/im/adapter/ax;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/adapter/ax;->a(Lcom/waiqin365/lightapp/im/adapter/ax;)Ljava/text/SimpleDateFormat;

    move-result-object v1

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->k()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/ay;->a:Lcom/waiqin365/lightapp/im/adapter/ax;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/ax;->a(Lcom/waiqin365/lightapp/im/adapter/ax;)Ljava/text/SimpleDateFormat;

    move-result-object v2

    invoke-virtual {p2}, Lcom/waiqin365/base/db/imnotice/g;->k()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/Date;->before(Ljava/util/Date;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    if-eqz v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method

.method public synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 1

    check-cast p1, Lcom/waiqin365/base/db/imnotice/g;

    check-cast p2, Lcom/waiqin365/base/db/imnotice/g;

    invoke-virtual {p0, p1, p2}, Lcom/waiqin365/lightapp/im/adapter/ay;->a(Lcom/waiqin365/base/db/imnotice/g;Lcom/waiqin365/base/db/imnotice/g;)I

    move-result v0

    return v0
.end method
